package com.xr.core.system.entity.operationLogModule;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.xr.core.system.common.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class LogEntity extends BaseEntity {

    private static final long serialVersionUID = -4491301251890707071L;

    @JsonProperty("params")
    private String requestParam;

    @JsonProperty("func")
    private String method;

    @JsonProperty("user")
    private Long userId;

    @JsonProperty("uName")
    private String userName;

    @JsonProperty("addr")
    private String ip;

    @JsonProperty("link")
    private String uri;

    /**
     * 逻辑删除
     */
    @JsonIgnore
    @TableField(exist = false)
    private Boolean deleted;

}
